package com.ruoyi.publish.southcontroller;


import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.publish.service.IForTaskSysService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.IOException;
@Anonymous
@RestController
@RequestMapping ("/forTaskSys")
public class ForTaskSysController {

    @Resource
    private IForTaskSysService forTaskSysService;

    @GetMapping("/pushJarToCloud")
    public void pushJarToCloud(@RequestParam("jobName") String jobName) throws IOException {
        forTaskSysService.updateTaskStatus(jobName);
    }
}
